package cn.mxp.a02_factory.method;

import org.junit.Test;

public class FactoryTest {
    @Test
    public void test01() {
        Car tesla = new TeslaFactory().getCar();
        Car xiaomi = new XiaomiFactory().getCar();
        System.out.println(tesla);
        System.out.println(xiaomi);
    }
}
